import React, { useState } from 'react';
function ExampleHook(){
  const [count, setCount] = useState(0)   // 数组解构
  return (
    <div>
      <p>You click {count} times</p>
      <button onClick={()=>{setCount(count+1)}}>click me</button>
    </div>
  )
}
export default ExampleHook